package com.xhs.service.impl;

import com.xhs.entity.StudentEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * @desc:
 * @projectName: tools-parent
 * @author: xhs
 * @date: 2022/12/3 22:13
 * @version: JDK 1.8
 */
public class StudentServiceImpl {

    /**
     * 获取List数据
     *
     * @return
     */
    public static List<StudentEntity> getStudentList() {
        List<StudentEntity> studentList = new ArrayList<>();
        studentList.add(new StudentEntity(1, "小明", 16, "高一", "3班"));
        studentList.add(new StudentEntity(1, "小李", 18, "高三", "1班"));
        studentList.add(new StudentEntity(1, "小王", 16, "高一", "2班"));
        studentList.add(new StudentEntity(1, "小徐", 17, "高二", "4班"));
        studentList.add(new StudentEntity(1, "小马", 19, "高三", "6班"));
        return studentList;
    }

    public static List<StudentEntity> getStudent() {
        List<StudentEntity> students = new ArrayList<>();
        students.add(new StudentEntity("张三", 16, "男", "3班"));
        students.add(new StudentEntity("张四", 18, "女", "1班"));
        students.add(new StudentEntity("张五", 22, "男", "2班"));
        students.add(new StudentEntity("张六", 25, "女", "4班"));
        students.add(new StudentEntity("张七", 12, "男", "6班"));
        return students;
    }
}
